<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function submitMethod01() {
	var textElement=document.getElementById("getText")
	var textContext=textContext.value;
	textContext=encodeURI(encodeURI(textContext));
	window.location.href='/maven_50_02/servlet/Servlet02?content='+textContext+'';
} 
</script>
</head>
<body>
<h3>get请求</h3>
<form action="" method="get">
内容：<input type="text" id="getText"><br>
<input type="button" value="提交" onclick="submitMethod01()">
<input type="reset" value="重置">
</form>
<h3>post请求</h3>
<form action="/maven_50_02/servlet/Servlet02" method="post">
内容：<input type="text" name="content"><br>
<input type="submit" value="提交">
<input type="reset" value="重置">
</form>
</body>
</html>